import { http } from "@/utils/http";
import type { HttpResult } from "@/utils/http/types";

export function queryShortcutTable(params) {
  return http.request<HttpResult>("get", "/admin/usershortcut/get/table", {
    params: params
  });
}

export function deleteShortcut(ids) {
  return http.request<HttpResult>("post", `/admin/usershortcut/delete/${ids}`);
}

export function addShortcut(params) {
  return http.request<HttpResult>("post", "/admin/usershortcut/insert/batch", {
    data: params
  });
}
